#!/bin/zsh

if [[ -x /usr/bin/wine ]] && [[ -x $WINE_EXECS[$1] ]] ; then
    wine $WINE_EXECS[$1]
else
    local exitcode=$?
    echo "Error while launching "$WINE_EXECS[$1]"\nExit code: "$exitcode
    return $exitcode
fi

